Fix comparisons of file ownership on MS-Windows for the Administrator user.
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Mar 2011 12:19:08 +0000 (14:19 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Mar 2011 12:19:08 +0000 (14:19 +0200)
commitc94c58925eb70dfee841d317c428b38a00251eb1
treed441d3bb69eb7fc8f7ee5d884a6b347b1d5e607a
parentff747e1bcf551f492546d76d5145dcabe09ba5aa
Fix comparisons of file ownership on MS-Windows for the Administrator user.

 lisp/files.el (file-ownership-preserved-p): Pass `integer' as an
 explicit 2nd argument to `file-attributes'.  If the file's owner
 is the Administrators group on Windows, and the current user is
 Administrator, consider that a match.
 lisp/server.el (server-ensure-safe-dir): Consider server directory
 safe on MS-Windows if its owner is the Administrators group while
 the current Emacs user is Administrator.  Use `=' to compare
 numerical UIDs, since they could be integers or floats.
lisp/ChangeLog
lisp/files.el
lisp/server.el